<?php defined('SYSPATH') or die('No direct access allowed.');

class Helper_Grid {
	
	//Factory method for instance of GridRequest
	public static function request($page,$limit,$sidx,$sord){
		return new Model_Jqgrid_Request($page,$limit,$sidx,$sord);
	}
	
	//Factory method for instance of GridModel
	public static function model($name,$id=false){
		$model = "Model_Jqgrid_".$name;
		return ($id) ? new $model($id): new $model;
	}

}
